<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      article {
        display: grid;
        width: 300px;
        height: 300px;
        border: 2px solid orange;
        /* grid-template-rows: repeat(auto-fill, 100px);
        grid-template-columns: repeat(auto-fill, 100px); */
        /* grid-template-rows: repeat(2, 1fr);
        grid-template-columns: repeat(2, 1fr); */
        grid-template-rows: repeat(3, [r-start] 1fr [r-end]);
        grid-template-columns: repeat(3, [c-start] 1fr [c-end]);
      }
      /* 命名方式 */
      /* div:first-child {
        grid-row: 3/4;
        grid-column: 3/4;
        background: white;
        border: 1px solid red;
        box-sizing: border-box;
      } */
      div:first-child {
        /* 从第一列开始偏移一个 */
        grid-row: 1 / span 1;
        /* 从第一行开始偏移三个 */
        grid-column: 1 / span 3;
        background: white;
        border: 1px solid red;
        box-sizing: border-box;
      }
    </style>
  </head>
  <body>
    <article>
      <div>19</div>
      <div>19</div>
      <div>19</div>
      <div>19</div>
      <div>19</div>
      <div>19</div>
      <div>19</div>
      <div>19</div>
    </article>
  </body>
</html>
